package day02_oop_code.com.itheima.d1_polymorphism;

public class Test {
    public static void main(String[] args) {
        Animal a1 = new Cat();
        a1.cry();
        System.out.println("a1.name = " + a1.name);

        Dog a2 = new Dog();
        a2.cry();
        System.out.println("a2.name = " + a2.name);
    }
}
